<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>vue之V-for</title>
    <script src="https://cdn.bootcss.com/vue/2.6.10/vue.js"></script>
</head>
<body>
<div id="app">
    <ul v-for=" student in students">
        <li v-for="(v,k,i) in student">{{i}}--------{{k}}--------{{v}}</li>
    </ul>
    <input type="button" value="点击" @click="on"/>
</div>
<script>
    new Vue({
        el:"#app",
        data:{
            students: [
                {
                    name: "zhangsan1",
                    age: 18,
                    address: "冤鬼路444号444号楼444单元444层444户"
                },
                {
                    name: "zhangsan2",
                    age: 18,
                    address: "冤鬼路444号444号楼444单元444层444户"
                },
                {
                    name: "zhangsan3",
                    age: 18,
                    address: "冤鬼路444号444号楼444单元444层444户"
                }
            ]
        },
        methods:{
            on:function (){
                alert(Date.now())
            }
        }

    })
</script>

</body>
</html>